// 管理员用户信息
export interface AdminUser {
  id: string;
  username: string;
  email: string;
  role: "admin" | "user";
  status: boolean;
  createTime: string;
  lastLoginTime: string;
}

// 系统统计数据
export interface SystemStats {
  userCount: number;
  noteCount: number;
  todayActive: number;
  systemLoad: number;
  totalStorage: number;
  dailyUploads: number;
}

// 内容管理
export interface AdminContent {
  id: string;
  title: string;
  content: string;
  username: string;
  userId: string;
  type: number; // 1: 图片, 2: 视频
  status: "normal" | "pending" | "disabled";
  createTime: string;
  likeCount: number;
  commentCount: number;
}

// 系统日志
export interface SystemLog {
  id: string;
  timestamp: string;
  level: "INFO" | "WARN" | "ERROR";
  message: string;
  duration: number;
  userId?: string;
  username?: string;
  ip?: string;
  userAgent?: string;
}

// 安全设置
export interface SecuritySettings {
  passwordPolicy: "low" | "medium" | "high";
  loginAttempts: number;
  sessionTimeout: number;
  enableTwoFactor: boolean;
  enableIpWhitelist: boolean;
  ipWhitelist: string[];
}

// 系统性能监控
export interface SystemPerformance {
  cpuUsage: number;
  memoryUsage: number;
  diskUsage: number;
  networkIn: number;
  networkOut: number;
  activeConnections: number;
  responseTime: number;
}
